import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/ManageParentsMeeting/GetDataPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/ManageParentsMeeting/GetDataInfo',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (row) => {
  return request({
    url: '/api/ManageParentsMeeting/DelSenateMeetingRoom',
    method: 'post',
    data: row
  })
}

export const add = (row) => {
  return request({
    url: '/api/ManageParentsMeeting/AddSenateMeeting',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/ManageParentsMeeting/pcAddNotificatiion',
    method: 'post',
    data: row
  })
}
export const jsList = (types, id) => {
  return request({
    url: '/api/ManageParentsMeeting/GetSendObjectByType',
    method: 'get',
    params: {
      types,
      id
    }
  })
}
export const GetFileUploadInfo = (id) => {
  return request({
    url: '/api/ManageParentsMeeting/GetFileUploadInfo',
    method: 'get',
    params: {
      id
    }
  })
}

export const school = () => {
  return request({
    url: '//api/PcPublicService/GetSchoolTreeSelect',
    method: 'get',
    params: {}
  })
}
